<?php
namespace app\common\validate\Coupon;

use think\Validate;


class Receive extends Validate
{
    /**
     * 验证规则
     * require 属于必填， unique：表示当前唯一的值, subject_order:表示是哪个表，只是省略表前缀
     */
    protected $rule = [
        'cid' => 'require',
        'busid' => 'require',
        'status' => ['number', 'in:0,1,-1'],
        
    ];

    // 提示消息
    protected $message  =   [
        'cid.require' => '优惠券活动ID必须填写',
        'busid.require'     => '用户ID必须填写',
        'status.number'      => '领取状态的类型有误',
        'status.in'      => '领取状态的值有误',
    ];
}   
?>